//
//  BCOrderViewManager.h
//  BangcaiSale
//
//  Created by Liang Zhang on 16/7/27.
//  Copyright © 2016年 Bangcai. All rights reserved.
//

#import "BCBaseViewManager.h"

@interface BCOrderViewManager : BCBaseViewManager
/*
 写入订单，数量自增1
 */
+ (void)writeStuffToOrder:(NSString *)uuid;
+ (void)updateAddStuffToOrder:(STUFF *)stuff;
+ (void)updateDecStuffToOrder:(STUFF *)stuff;
/*
 写入订单，数量根据设定
 */
+ (void)writeStuffUseCountToOrder:(NSString *)uuid Count:(NSInteger)conut;
/*
 读取所有订单
 */
+ (NSArray *)readStuffFromOrder;
/*
 读取订单通过uuid
 */
+ (ORDER *)readStuffFromOrder:(NSString *)uuid;
/*
 按index次序分组读取订单
 */
+ (NSArray *)readStuffInCategoryFromOrderWithIndex:(NSInteger)index;
/*
 读取订单的所有分类（按种类权重排序）
 */
+ (NSArray *)readCategoryFromOrder;
/*
 读取种类权重值
 */
+ (NSInteger)readCategoryFormOrder:(NSInteger)index;
/*
 按数量修改订单，数量-1，直到数量为0，删除该订单
 */
+ (void)removeStuffFromOrder:(NSString *)uuid;
/*
 清除订单
 */
+ (void)removeOrder:(NSString *)uuid;
+ (void)removeOrderWithAarray:(NSArray *)deleteArray;
@end
